.page-title {
  position: relative;
  // &::before {
  //   content: "";
  //   position: absolute;
  //   left: 0;
  //   top: 0;
  //   width: 100%;
  //   height: 100%;
  //   background: linear-gradient(90deg, #19a1c8, #0062a9, #0b318f);
  //   opacity: 0.5;
  //   z-index: 2;
  // }
  &-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  .container {
    .row {
      min-height: 320px;
      align-items: end;
      color: $white;
      justify-content: space-between;

      .col-auto {
        z-index: 3;
        &.share {
          display: none;
        }
        .title {
          background: linear-gradient(to right, #0b318f, #163d97);
          margin-bottom: 0;
          padding: 1rem 0.5rem;
          text-align: center;
          min-width: 15rem;
          border-top-right-radius: 1rem;
        }
        .intro {
          display: none;
        }
        h1 {
          color: $white;
          font-size: 24px;
        }
      }
    }
  }
}

.post-list {
  .post-item {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    .post-thumb {
      position: relative;
      overflow: hidden;
      width: 100%;
      // aspect-ratio: 3/2;
      padding-bottom: 66.67%;
      .meta {
        visibility: hidden;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 2;
        .calendar {
          background-color: $primary;
          color: #fff;
          display: inline-block;
          line-height: 1;
          padding: 12px 8px;
          text-align: center;
          .date {
            font-size: 20px;
            font-weight: 600;
          }
          .year {
            font-size: 18px;
            margin-top: 6px;
          }
        }
        .tag {
          display: inline-block;
          padding: 5px 15px;
          color: #fff;
          font-size: 14px;
          line-height: 1.1;
          background-color: $primary;
          transition: all 0.3s ease-in-out;
        }
      }

      img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: all 0.2s ease-in-out;
      }
    }
    .post-text {
      .title {
        font-size: 18px;
        font-weight: 600;
        padding: 16px 0 0;
      }
      .intro {
        background: none;
        font-size: 14px;
        padding: 16px 0;
        text-align: justify;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
      }
    }
    &:hover {
      .post-thumb {
        img {
          transform: scale(1.1);
        }
      }
    }
  }

  .team {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 31rem;
    padding: 2rem 0;
    .team-name {
      --swiper-navigation-size: 24px;
      width: 100%;
      position: relative;
      height: 3rem;
      line-height: 3rem;
      padding: 0 2rem;
      margin-bottom: 10px;

      .swiper-button-prev,
      .swiper-button-next {
        width: 24px;
        height: 24px;
      }

      .swiper-button-prev {
        left: 0;
      }
      .swiper-button-next {
        right: 0;
      }

      .swiper-team {
        .swiper-slide {
          background: $primary;
          color: #fff;
          text-align: center;
        }
        .swiper-slide-thumb-active {
          color: $warning;
          font-weight: 600;
        }
      }
    }
    .team-photo {
      width: 100%;
      position: relative;
      height: 24rem;
      .swiper-team-2 {
        --swiper-navigation-color: #fff;
        --swiper-pagination-color: #fff;
        width: 100%;
        height: 100%;

        padding: 20px auto;

        .swiper-slide {
          text-align: center;
          font-size: 18px;
          background: #fff;
          background-position: center;
          background-size: cover;
          // max-width: 600px;
          // height: 400px;
          width: 100%;
        }
        .swiper-slide img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }
}

.teacher-list {
  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .teacher {
    img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
    }
    h4 {
      font-size: 16px;
      color: $primary;
      position: relative;
      padding-bottom: 12px;
      &::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0px;
        width: 75%;
        height: 3px;
        background-color: rgba($primary, 0.35);
      }
      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 1px;
        width: 100%;
        height: 1px;
        background-color: rgba($primary, 0.35);
      }
      span {
        font-size: 12px;
        color: $primary;
        opacity: 0.3;
        margin-left: 16px;
      }
    }
    p {
      font-size: 12px;
      margin-bottom: 6px;
    }
    &:hover {
      img {
        padding: 0;
        transition: All 0.5s ease;
      }
      h4 {
        &::before {
          width: 100%;
          transition: all 0.5s ease-in-out;
        }
      }
    }
  }
}

.student-list {
  .post-item {
    .post-thumb {
      padding-bottom: 56.67%;
    }
  }
}

.post {
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 21px;
  }
  h3 {
    font-size: 18px;
  }
  h4 {
    font-size: 16px;
  }
  h5 {
    font-size: 14px;
  }
  h6 {
    font-size: 12px;
  }
  .title {
    text-align: center;
    color: $gray-700;
    line-height: 1.5;
  }
  .meta {
    text-align: center;
    color: $gray-500;
    font-size: 14px;
  }
  a {
    color: $primary;
    &:hover {
      color: $warning;
    }
  }
}

// .major {
//   .invisible {
//     height: 0;
//     margin: 0;
//     padding: 0;
//   }
// }

// .major-list {
//   .card {
//     position: relative;
//     border-radius: 0;
//     border-color: $gray-200;
//     box-shadow: var(--#{$prefix}box-shadow-sm);
//     transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
//     .major-photo {
//       position: relative;
//       width: 100%;
//       overflow: hidden;
//     }
//     .badge {
//       background: $danger;
//       font-weight: 400;
//       font-size: 14px;
//       position: absolute;
//       top: 10px;
//       left: 10px;
//       z-index: 1;
//     }
//     img {
//       width: 100%;
//       transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
//     }
//     .card-body {
//       display: flex;
//       flex-direction: column;
//       // justify-content: space-between;
//       h3 {
//         font-size: 1.125rem;
//       }
//       p {
//         margin-bottom: 6px;
//       }
//       .meta {
//         color: $gray-500;
//       }
//       .slogan {
//         color: $gray-600;
//       }
//     }
//     a {
//       display: block;
//       position: absolute;
//       width: 100%;
//       height: 100%;
//       top: 0;
//       left: 0;
//     }
//     &:hover {
//       box-shadow: var(--#{$prefix}box-shadow);
//       transform: translateY(-3px);

//       // img {
//       //     transform: scale(1.07);
//       // }
//       .badge {
//         background: $warning;
//       }
//       .card-body {
//         h3 {
//           color: $primary;
//         }
//         .slogan {
//           color: $gray-800;
//         }
//       }
//     }
//   }
// }

.leader-item {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: $gray-100 !important;
  &:hover {
    background: $primary !important;
    h3 {
      color: #f9d9a5;
    }
    .leader-more {
      color: #f9d9a5;
    }
  }
}

.teacher-item {
  background: $gray-100 !important;
  position: relative;
  transition: all 0.2s ease-in-out;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 5rem;
    height: 3px;
    background-color: rgba($primary, 0.75);
    transition: all 0.3s ease-in-out;
  }
  .card-body,
  h3,
  p,
  div {
    transition: all 0.1s ease-in-out;
  }
  &:hover {
    &::after {
      background-color: rgba($info, 0.5);
    }
    background: rgba($primary, 0.85) !important;
    .card-body {
      background: url("/assets/images/page/teacher/bg.png");
      background-size: cover;
    }
    h3 {
      color: $white;
    }
    p {
      color: $white;
    }
    div {
      color: $white;
    }
  }
}

.sidebar {
  z-index: 10;
  .category-toggle {
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--#{$prefix}body-bg);
    border: 1px solid var(--#{$prefix}border-color);
    // border-radius: var(--#{$prefix}border-radius);

    svg {
      width: 1em;
      height: 1em;
      vertical-align: -0.125em;
      fill: currentcolor;
    }
    &:focus {
      color: $primary;
      // box-shadow: 0 0 0 3px rgba($primary, 0.25);
      border-color: $primary;
      &:not(:focus-visible) {
        outline: 0;
      }
    }
  }

  .category-collapse {
    &.collapsing {
      &:not(.show) {
        // display: none;
        height: 0;
      }

      overflow: hidden;
      transition: all 0.3s ease-in-out;
    }

    nav {
      padding: 20px 20px 20px 16px;
      background-color: var(--#{$prefix}tertiary-bg);
      border: 1px solid var(--#{$prefix}border-color);
      // border-radius: var(--#{$prefix}border-radius);
      ul {
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        a {
          display: block;
          padding: 2px 0 2px 12px;
          text-decoration: none;
          // border-left: 2px solid transparent;
        }
        ul {
          padding-left: 16px;
        }
      }
    }
  }

  .hot-item {
    display: block;
    height: 100%;
    padding: 0 10px;
    position: relative;
    &::after,
    &::before {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 1px;
      background-color: $gray-200;
      width: 100%;
      z-index: 1;
    }
    &::after {
      width: 0;
      background-color: $primary;
      transition: all 0.3s ease-in-out;
    }

    .date {
      display: flex;
      align-items: center;
      .badge {
        border-radius: 0;
      }
      .time {
        font-size: 14px;
        margin-left: 0.5em;
        visibility: hidden;
      }
    }
    .title {
      margin: 5px 0;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      transition: all 0.3s ease-in-out;
    }

    &:hover {
      &::after {
        width: 100%;
      }
    }
  }

  .offcanvas-header {
    padding: 0 var(--#{$prefix}offcanvas-padding-x);
    height: 64px;
  }
}

.grid-inner {
  position: relative;
  overflow: hidden;
  will-change: transform;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

// 视频列表页
#video {
  position: relative;
  // transition: height 0.4s linear;
  .video-item {
    .videoplay-on-hover {
      position: relative;
      overflow: hidden;
      display: block;
      width: 100%;
      height: auto;
      .video {
        overflow: hidden;
        width: 100%;
        position: relative;
        video {
          position: relative;
          display: block;
          z-index: 1;
          opacity: 1;
          width: 100%;
          transition: opacity 0.3s 1s ease;
        }
      }
      .video-desc {
        height: 2em;
        background: linear-gradient(#4865ab, #4865abe6);
        h5 {
          color: $white;
          font-size: 16px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          margin-bottom: 0;
          text-align: center;
          line-height: 2em;
        }
      }

      &:hover {
        .video-desc {
          h5 {
            color: $warning;
          }
        }
      }
    }
  }
}

// 图集页播放器

.lightbox {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background: $gray-100;
  overflow: hidden;
  opacity: 0;
  &.show {
    z-index: 1051;
    opacity: 1;
  }

  .btn-close {
    position: absolute;
    right: 1em;
    top: 1em;
    width: 2em;
    height: 2em;
    overflow: visible;
    cursor: pointer;
    border: 0;
    display: block;
    outline: none;
    padding: 0;
    box-shadow: none;
    touch-action: manipulation;
    border: 1px solid $gray-600;
    z-index: 1052;
  }
}

#campus-album {
  height: 100%;
  max-height: calc(100vh - 216px);

  .swiper-wrapper {
    height: 100%;
    text-align: center;
  }
  .swiper-slide {
    .img-box {
      height: calc(100% - 2em);
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
      }
    }
    .text-box {
      height: 2em;
      line-height: 2em;
      font-size: 0.875em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}
#photo-thumb {
  height: 120px;
  overflow: hidden;
  .thumb {
    height: 100%;
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}

@include media-breakpoint-up(md) {
  .page-title {
    .container {
      .row {
        .col-auto {
          &.share {
            display: block;
            .social-share-icon {
              border-color: $gray-100 !important;
              border-radius: 10%;
              color: $gray-50 !important;
              &:hover {
                border-color: transparent !important;
              }
            }
          }
        }
      }
    }
  }
  .sidebar {
    width: 200px;
    position: sticky;
    top: 64px;
    left: 0;
    max-height: calc(100vh - 64px);
    .category-current {
      background-color: $primary;
      background-image: url(/assets/images/shape-1.png);
      background-position: top left;
      color: #fff;
      text-align: center;
      font-size: 20px;
      font-weight: 600;
      padding: 15px 0;
    }
    .category-collapse {
      display: block;
      border: 3px solid $primary;
      nav {
        width: 100%;
        height: 100%;
        padding: 10px 20px 10px;
        max-height: calc(100vh - 130px);
        overflow-y: scroll;
        position: relative;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: $white;
        ul {
          a {
            display: block;
            position: relative;
            overflow: hidden;
            text-indent: 16px;
            font-size: 18px;
            font-weight: 600;
            color: $gray-500;
            border-bottom: 1px solid $gray-100;
            padding: 0.5rem 0;
            &::before {
              content: "";
              position: absolute;
              left: 0;
              top: 50%;
              margin-top: -5px;
              width: 8px;
              height: 8px;
              border-top: 1px solid;
              border-right: 1px solid;
              transform: rotate(45deg);
              border-color: $gray-400;
              transition: all 0.3s ease-in-out;
            }

            &.active,
            &:hover {
              color: $warning;
              border-color: rgba($warning, 0.5);
              &::before {
                border-color: $warning;
                border-width: 3px;
              }
            }
          }
          ul {
            a {
              font-size: 16px;
              font-weight: 500;
              &.active,
              &:hover {
                font-weight: 600;
              }
            }
          }
        }
      }
    }
  }
  .post-list,
  .post,
  .manager-list {
    width: 500px;
    box-shadow: 0 16px 45px #0000002d;
    padding: 15px;
    margin-bottom: 30px;
  }
}

@include media-breakpoint-up(lg) {
  .content-wrap {
    background: url(/assets/images/shape-2.png) right bottom no-repeat;
    background-size: contain;
    background-attachment: fixed;
  }
  .sidebar {
    width: 220px;
  }
  .post-list,
  .manager-list {
    width: 720px;
    background: $white;
    padding: 15px 20px;
    .post-item {
      flex-direction: row;
      padding-bottom: 15px;
      .post-thumb {
        flex: 1;
        // aspect-ratio: 3/2;
        padding-bottom: 16.67%;
        margin-right: 10px;
        .meta {
          .calendar {
            background: rgba($primary, 0.75);
            transition: all 0.3s ease-in-out;
            .date {
              font-size: 16px;
            }
            .year {
              font-size: 14px;
            }
          }
          .tag {
            display: none;
          }
        }
      }
      .post-text {
        flex: 3;
        .title {
          padding-top: 0;
        }
        .intro {
          padding-bottom: 0;
        }
      }
      &::before,
      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        background-color: $gray-200;
        width: 100%;
        z-index: 1;
      }
      &::after {
        width: 0;
        background-color: $warning;
        transition: all 0.3s ease-in-out;
      }
      &:hover {
        .post-thumb {
          .calendar {
            background: rgba($warning, 0.75);
          }
        }
        &::after {
          width: 100%;
        }
      }
    }
  }
  .student-list {
    .post-item {
      .post-thumb {
        padding-bottom: 14.17%;
      }
    }
  }
  .post {
    width: 720px;
    background: $white;
    padding: 15px 20px;
  }
}

@include media-breakpoint-up(xl) {
  .sidebar {
    width: 280px;
    top: 80px;
    z-index: 2;
    max-height: calc(100vh - 90px);

    .category-collapse {
      nav {
        max-height: calc(100vh - 146px);
      }
    }
  }

  .post-list,
  .manager-list {
    padding: 15px 30px;
    width: 800px;
  }

  .post {
    width: 800px;
    padding: 15px 30px;
  }

  .post-list {
    .team {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      height: 38rem;

      .team-name {
        --swiper-navigation-size: 24px;
        --swiper-pagination-top: 0px;
        --swiper-pagination-color: #fff;
        --swiper-pagination-bullet-inactive-color: #fff;
        --swiper-pagination-bullet-inactive-opacity: 0.5;
        // --swiper-navigation-top-offset: 0;
        --swiper-navigation-sides-offset: calc(50% - 12px);

        width: 10rem;
        position: relative;
        height: 36rem;
        padding: 2rem 0;
        margin-bottom: 0;

        .swiper-button-prev,
        .swiper-button-next {
          width: 24px;
          height: 24px;
        }

        .swiper-button-prev {
          top: 12px;
          left: calc(50% - 12px);
          &::after {
            transform: rotate(90deg);
          }
        }

        .swiper-button-next {
          top: auto;
          bottom: 0;
          left: calc(50% - 12px);

          &::after {
            transform: rotate(90deg);
          }
        }
        .swiper-team {
          width: 100%;
          height: 100%;

          .swiper-slide {
            position: relative;
            display: block;
            // text-align: center;
            font-size: 1rem;
            line-height: 1.5rem;
            padding: 0rem 0.5rem;
            // background-color: var(--zcu-brand-color);
            // color: #ffffff;
            background: transparent;
            color: $body-color;
            text-align: left;
            text-indent: 16px;

            &::before {
              content: "";
              position: absolute;
              top: calc(50% - 5px);
              left: 0;
              background: $primary;
              width: 10px;
              height: 10px;
              margin-right: 15px;
            }

            &::after {
              content: "";
              position: absolute;
              background-color: $warning;
              top: calc(50% - 1px);
              height: 2px;
              width: 5%;
              margin-left: 15px;
              opacity: 0;
            }
          }

          .swiper-slide-thumb-active {
            color: $warning;
            font-weight: 600;

            &::after {
              opacity: 1;
              width: 100%;
              transition: width 1s;
            }
          }
        }
      }

      .team-photo {
        width: calc(100% - 11rem);
        position: relative;
        height: 36rem;
      }
    }
  }
}

@include media-breakpoint-up(xxl) {
  .post-list,
  .manager-list {
    width: calc(100% - 300px);
    .post-item {
      .post-thumb {
        flex: 1;
        // aspect-ratio: 3/2;
        padding-bottom: 16.67%;
      }
      .post-text {
        flex: 2;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 1024 1024' fill='%23999' %3e%3cpath d='M818.752 576H64v64h827.392a33.92 33.92 0 0 0 24-57.92l-252.8-252.736-45.184 45.312L818.752 576z'%3e%3c/path%3e%3c/svg%3e");
        background-position: bottom 10px right 10px;
        background-repeat: no-repeat;
      }
      &:hover {
        .post-text {
          background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 1024 1024' fill='%23bd9f68' %3e%3cpath d='M818.752 576H64v64h827.392a33.92 33.92 0 0 0 24-57.92l-252.8-252.736-45.184 45.312L818.752 576z'%3e%3c/path%3e%3c/svg%3e");
        }
      }
    }
  }
  .student-list {
    .post-item {
      .post-thumb {
        padding-bottom: 18.89%;
      }
    }
  }
}
